package domain;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class EmailLogger {
	@Before("execution(* getContactByEmail(String))")
	public void log(JoinPoint joinPoint) {
		System.out.println("*** EMAIL LOGGER ***\nL'email du contact recherché est : " + joinPoint.getArgs()[0]);
	}
}